<?php
$this->load->helper('form');
$attributes = array('onsubmit' => 'branchAddRequest('.$pkgid.'); return false;');
echo form_open('#',$attributes);
?>
<h2> Add Branch </h2>
<table>
	<tr>
		<td class='form-field'> <strong> Name :</strong></td>
		<td><?php
		$data = array(
		              'name'        => 'name',
		              'id'          => 'name',
		              'maxlength'   => '50',
		              'size'        => '50',
		              'value'		=> $values['name_val']
		            );
		echo form_input($data);
		?>
		</td>
		<td class='error-message'><?=$errors['name_err'];?></td>
	</tr>
	
	<tr>
		<td class='form-field'> <strong> Description :</strong></td>
		<td><?php
		$data = array(
		              'name'        => 'description',
		              'id'          => 'description',
		              'rows'		=> '10',
		              'cols'        => '30',
		              'value'		=> $values['description_val']
		            );
		echo form_textarea($data);
		?>
		</td>
		<td class='error-message'><?=$errors['description_err'];?></td>
	</tr>
	
	<tr>
		<td class='form-field'>
			<?php echo form_submit('submit', 'Send'); ?>
		</td>
	</tr>
</table>

<?php
echo form_close('');
?>

